package Server;
/* file comment */
import java.util.Date;

/**
 * @author David
 * @version $Revision: 1.0 $
 */
public class Treatments{
	/**
	 * Field symptoms.
	 */
	/**
	 * Field nurseName.
	 */
	/**
	 * Field doctorName.
	 */
	private String doctorName, nurseName, symptoms;

	/**
	 * Field bloodPressure.
	 */
	/**
	 * Field nurseID.
	 */
	/**
	 * Field doctorID.
	 */
	private int doctorID, nurseID, bloodPressure;

	/**
	 * Field weight.
	 */
	/**
	 * Field height.
	 */
	/**
	 * Field temperature.
	 */
	/**
	 * Field pulse.
	 */
	private int pulse, temperature, height, weight;

	/**
	 * Field hasDocOrders.
	 */
	private boolean hasDocOrders;

	/**
	 * Field treatmentDate.
	 */
	private Date date;

	/**
	 * Field docOrders.
	 */
	protected DoctorsOrders docOrders;

	/**
	 * Constructor for Treatments.
	 * @param doctorName String
	 * @param nurseName String
	 * @param symptoms String
	 * @param doctorID int
	 * @param nurseID int
	 * @param bloodPressure int
	 * @param pulse int
	 * @param temperature int
	 * @param height int
	 * @param weight int
	 * @param date Date
	 */
	public Treatments(String doctorName, String nurseName, String symptoms,
			int doctorID, int nurseID, int bloodPressure, int pulse,
			int temperature, int height, int weight, Date date) {
		super();
		this.doctorName = doctorName;
		this.nurseName = nurseName;
		this.symptoms = symptoms;
		this.doctorID = doctorID;
		this.nurseID = nurseID;
		this.bloodPressure = bloodPressure;
		this.pulse = pulse;
		this.temperature = temperature;
		this.height = height;
		this.weight = weight;
		this.date = date;
		this.hasDocOrders = false;
	}
	
	/**
	 * 
	 * @return String
	 */
	public void toPrint(){
		System.out.println(date.toString());
		return;
	}

	/**
	 * Method canAddDocOrders.
	 * @param docorders DoctorsOrders
	 * @return boolean
	 */
	public boolean canAddDocOrders (DoctorsOrders docorders) {
		if (hasDocOrders)
			return false;
		this.docOrders = docorders;
		return true;
	}

	/**
	 * Method removeDocOrders.
	 */
	public void removeDocOrders() {
		this.hasDocOrders = false;
	}

	/**
	 * getters & setters
	 * @return String
	 */
	public String getDoctorName() {
		return doctorName;
	}

	/**
	 * Method setDoctorName.
	 * @param doctorName String
	 */
	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}

	/**
	 * Method getNurseName.
	 * @return String
	 */
	public String getNurseName() {
		return nurseName;
	}

	/**
	 * Method setNurseName.
	 * @param nurseName String
	 */
	public void setNurseName(String nurseName) {
		this.nurseName = nurseName;
	}

	/**
	 * Method getSymptoms.
	 * @return String
	 */
	public String getSymptoms() {
		return symptoms;
	}

	/**
	 * Method setSymptoms.
	 * @param symptoms String
	 */
	public void setSymptoms(String symptoms) {
		this.symptoms = symptoms;
	}

	/**
	 * Method getDoctorID.
	 * @return int
	 */
	public int getDoctorID() {
		return doctorID;
	}

	/**
	 * Method setDoctorID.
	 * @param doctorID int
	 */
	public void setDoctorID(int doctorID) {
		this.doctorID = doctorID;
	}

	/**
	 * Method getNurseID.
	 * @return int
	 */
	public int getNurseID() {
		return nurseID;
	}

	/**
	 * Method setNurseID.
	 * @param nurseID int
	 */
	public void setNurseID(int nurseID) {
		this.nurseID = nurseID;
	}

	/**
	 * Method getBloodPressure.
	 * @return int
	 */
	public int getBloodPressure() {
		return bloodPressure;
	}

	/**
	 * Method setBloodPressure.
	 * @param bloodPressure int
	 */
	public void setBloodPressure(int bloodPressure) {
		this.bloodPressure = bloodPressure;
	}

	/**
	 * Method getPulse.
	 * @return int
	 */
	public int getPulse() {
		return pulse;
	}

	/**
	 * Method setPulse.
	 * @param pulse int
	 */
	public void setPulse(int pulse) {
		this.pulse = pulse;
	}

	/**
	 * Method getTemperature.
	 * @return int
	 */
	public int getTemperature() {
		return temperature;
	}

	/**
	 * Method setTemperature.
	 * @param temperature int
	 */
	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}

	/**
	 * Method getHeight.
	 * @return int
	 */
	public int getHeight() {
		return height;
	}

	/**
	 * Method setHeight.
	 * @param height int
	 */
	public void setHeight(int height) {
		this.height = height;
	}

	/**
	 * Method getWeight.
	 * @return int
	 */
	public int getWeight() {
		return weight;
	}

	/**
	 * Method setWeight.
	 * @param weight int
	 */
	public void setWeight(int weight) {
		this.weight = weight;
	}


	/**
	 * Method getDocOrders.
	 * @return DoctorsOrders
	 */
	public DoctorsOrders getDocOrders() {
		return docOrders;
	}

	/**
	 * Method setDocOrders.
	 * @param docOrders DoctorsOrders
	 */
	public void setDocOrders(DoctorsOrders docOrders) {
		this.docOrders = docOrders;
		this.setHasDocOrders(true);
	}

	/**
	 * Method setHasDocOrders.
	 * @param hasDocOrders boolean
	 */
	public void setHasDocOrders(boolean hasDocOrders) {
		this.hasDocOrders = hasDocOrders;
	}

	/**
	 * Method isHasDocOrders.
	 * @return boolean
	 */
	public boolean isHasDocOrders() {
		return hasDocOrders;
	}
}